Component({
  properties: {
    detail: {
      type: Object
    },
    hasShadow: {
      type: Boolean,
      value: true
    }
  },
  data: {},
  options: {
    styleIsolation: 'shared'
  },
  lifetimes: {
    attached() {
    }
  },
  methods: {
    toDetail({ currentTarget = {} }) {
      wx.navigateTo({
        url: '/packageA/pages/teacher/detail/detail?userId=' + currentTarget.dataset.id
      })
    }
  }
})
